﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ImageProcesser
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        public static String CommandLineFileName = "";

        [STAThread]
        static void Main(string [] args)
        {
            TestHomo();
            
            if (args.Count() >= 1)
            {
                CommandLineFileName = args[0];
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppInstance.Initialize();
            Application.Run(new ImageProcessorForm());
        }

        private static void TestHomo()
        {
            float[] x1 = new float[]{0.2f, 0.8f, 0.0f, 1.0f};
            float[] x2 = new float[]{0.0f, 1.0f, 0.0f, 1.0f};
            float[] y1 = new float[]{0.0f, 0.0f, 1.5f, 1.5f};
            float[] y2 = new float[]{0.0f, 0.0f, 1.0f, 1.0f};
            var rs = Homography.Homography.ComputeHomography(x1, y1, x2, y2);
        }
    }
}
